package org.mx.dal.entity;

import org.springframework.data.mongodb.core.index.GeoSpatialIndexType;
import org.springframework.data.mongodb.core.index.GeoSpatialIndexed;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Getter;
import lombok.Setter;

@SuppressWarnings("javadoc")
@Document(collection = "school")
@Getter
@Setter
public class SchoolEntity extends MongoBaseEntity implements Base {
    /**
	 * 
	 */
	private static final long serialVersionUID = 5983647513458629714L;
	private String name;
    @GeoSpatialIndexed(name = "location", type = GeoSpatialIndexType.GEO_2DSPHERE)
    private double[] location;
}
